package com.lipaluma.io;

import java.io.Closeable;

import com.lipaluma.parser.marshalling.ObjectMarshalled;


/**
 * Interface for writing to the output file
 * @author mario.soares
 */
public interface SourceWriter extends Closeable {
	
	void write(ObjectMarshalled objectMarshalled);
	/**
	 * return the current row : the number of rows created
	 * @return the curent row number
	 */
	int getCurrentNumber();
	/**
	 * close and flush the file
	 */
	void close();

}
